const {merge} = require('webpack-merge');
const base = require('./webpack.base.config');
const webpack = require('webpack');
module.exports = merge(base, {
    //模块参数
    mode: 'development',
    devServer: {
        contentBase: './dist',
        proxy: {
            '/mshop/api/gataway': {
                target: 'http://127.0.0.1:10010',
                changeOrigin: true,
                pathRewrite: {
                    'mshop/api/gataway': '/api/'
                }
            }
        },
        disableHostCheck: true,
        overlay: {
            warnings: false,
            errors: false
        }
    },
    devtool: 'source-map',
    plugins: [
        new webpack.DefinePlugin({
            DEV: JSON.stringify('dev')
        })
    ]
});